import React from 'react';
import ReactDOM from 'react-dom';

import { BrowserRouter as Router, Route} from 'react-router-dom';
import {getQueryString} from './utils/util';

import Index from './pages/Index';
import Enroll from './pages/Enroll';
import Lxr from './pages/Lxr';
import AddLxr from './pages/AddLxr';
import Center from './pages/Center';
import Order from './pages/Order';
import Zhaopin from './pages/Zhaopin';
import LxrList from './pages/LxrList';
import Detail from './pages/Detail';
import Imgs from './pages/Imgs';
import Introduce from './pages/Introduce';
import Mzsm from './pages/Mzsm';
import Hj from './pages/Hj';

class BaseRouter extends React.Component{
    render () {
        return (
            <Router>
                <div style={{height:'100%'}}>
                    <Route path='/' exact component={Index} />
                    <Route path='/detail' exact component={Detail} />
                    <Route path='/detail/imgs' component={Imgs} />
                    <Route path="/index" component={Index} />
                    <Route path="/enroll" component={Enroll} />
                    <Route path="/lxr" exact component={Lxr} />
                    <Route path="/lxr/list" component={LxrList} />
                    <Route path="/lxr/add" component={AddLxr} />
                    <Route path="/center" exact component={Center} />
                    <Route path="/center/order" component={Order} />
                    <Route path="/center/introduce" component={Introduce} />
                    <Route path="/zhaopin" component={Zhaopin} />
                    <Route path="/mzsm" component={Mzsm} />
                    <Route path="/hj" component={Hj} />
                </div>
            </Router>
        );
    }
}

ReactDOM.render(<BaseRouter />, document.getElementById('root'));
